package com.vhall.component.controller.record;

import com.vhall.component.controller.record.facade.RecordFacade;
import com.vhall.component.entity.record.RecordEntityDTO;
import com.vhall.component.entity.record.vo.RecordChapterListRequestVO;
import com.vhall.component.entity.record.vo.RecordChapterListResponseVO;
import com.vhall.component.framework.common.annotation.VhallComponent;
import com.vhall.component.service.record.RecordService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author guoxin.wang
 * @date 2021-06-17
 */
@VhallComponent
public class RecordController implements RecordFacade {

    @Autowired
    private RecordService recordService;

    @Override
    public void insert(RecordEntityDTO recordEntity) {
        recordService.insert(recordEntity);
    }

    @Override
    public void updateById(RecordEntityDTO recordEntity) {
        recordService.updateById(recordEntity);
    }

    @Override
    public RecordEntityDTO findByVodId(String vodId) {
        return recordService.findByVodId(vodId);
    }

    @Override
    public RecordChapterListResponseVO getRecordChapterList(RecordChapterListRequestVO reqVO) {
        return recordService.getRecordChapterList(reqVO);
    }

}
